package com.adan.base.execption;

/**
 * @version: 1.0
 * @Author: adan
 * @description: 通用异常信息的枚举类
 * @date: 2023-06-01 14:16
 */
public enum CommonError {
    UNKNOWN_ERROR("执行过程异常，请重试"),
    PARAS_ERROR("非法参数"),
    OBJECT_NULL("对象为空"),
    QUERY_NULL("查询结果为空"),
    REQUEST_NULL("请求参数为空"),
    VALID_EXCEPTION("参数校验错误");

    private String errMessage;

    public String getErrMessage() {
        return errMessage;
    }

    CommonError(String errMessage) {
        this.errMessage = errMessage;
    }
}
